package thread;

public class OutGuestThread extends Thread{
	InOutProcess ip;
	
	public OutGuestThread(InOutProcess ip){
		this.ip = ip;
	}
	
	public void run(){
		for(int i=1;i<10;i++){
			ip.outGuest();
			try
			{
				Thread.sleep(500);
			}
			catch(InterruptedException e){
				e.printStackTrace();
			}
		}
	}
	public static void main(String[] args) {
		

	}

}
